<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/static/common/taglibs.jsp"%>
<div class="page">
	<div class="pageHeader">
		<form id="pagerForm" onsubmit="return navTabSearch(this);"
			action="${ctx}${baseMapping}" method="post">
			<!--Begin page Search -->
			<input type="hidden" id="numPerPage" name="page.pageSize"
				value="${page.pageSize}" /> <input type="hidden" name="page.pageNo"
				id="pageNum" value="${page.pageNo}" /> <input type="hidden"
				name="page.orderBy" id="orderField" value="${page.orderBy}" /> <input
				type="hidden" name="page.order" id="order" value="${page.order}" />
			<!--End page Search -->
			<div class="searchBar">
				<ul class="searchContent">
					<li style="width: 175px;"><label style="width: 50px;">账号:</label><input
						type="text" name="filter_LIKE_loginName" style="width: 100px;"
						value="${param['filter_LIKE_loginName']}" size="10" /></li>
					<li style="width: 175px;"><label style="width: 50px;">姓名:</label><input
						type="text" style="width: 100px;" name="filter_LIKE_name"
						value="${param['filter_LIKE_name']}" /></li>
				</ul>
				<div class="subBar">
					<ul>
						<li><div class="buttonActive">
								<div class="buttonContent">
									<button type="submit">检索</button>
								</div>
							</div></li>
					</ul>
				</div>
			</div>
		</form>
	</div>

	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li class="line">line</li>
				<li><a class="add" href="${ctx}${baseMapping}/input/0"
					target="dialog" width="800" height="550" rel="d_userInput"><span>新增</span>
				</a></li>
				<li class="line">line</li>
				<li><a class="delete" href="${ctx}${baseMapping}/deletes"
					target="selectedTodo" title="确实要删除这些记录吗?"><span>删除</span> </a></li>
				<li class="line">line</li>
				<li class=""><a class="icon" href="#" target="dialog"
					width="300" height="300" rel="d_aircraftTypeInput"><span>导入</span>
				</a></li>
				<li class="line">line</li>
				<li class=""><a class="icon" href="#"><span>导出</span> </a></li>
			</ul>
		</div>
		<div class="panelBar">
			<div class="pages">
				<span>每页显示</span> <select name="numPerPage"
					onchange="navTabPageBreak({numPerPage:this.value})">
					<c:forEach items="${selectPageList}" var="model">
						<option value="${model.key}"
							<c:if test="${model.key==page.pageSize}">selected="selected"</c:if>>${model.value}</option>
					</c:forEach>
				</select> <span>&nbsp;共${page.totalCount}条,共${page.totalPages}页</span>
			</div>
			<div class="pagination" targetType="navTab"
				totalCount="${page.totalCount}" numPerPage="${page.pageSize}"
				pageNumShown="10" currentPage="${page.pageNo}"></div>
		</div>
		<table class="table myTable" width="100%" layouth="148">
			<thead>
				<tr>
					<th width="3%" align="center">序号</th>
					<th width="3%"><input type="checkbox" class="checkboxCtrl"
						group="ids"></th>
					<th width="5%">操作</th>
					<th width="10%" align="center">账号</th>
					<th width="10%" align="center">姓名</th>
					<th width="" align="center">角色</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${page.result}" var="user" varStatus="index">
					<tr target="sid_id" rel="${user.id}">
						<td>${index.index }</td>
						<td><input type="checkbox" value="${user.id}" name="ids"></td>
						<td class="left" width="60">
							<div>
								<a class="btnDel" href="${ctx}${baseMapping}/delete/${user.id}"
									target="ajaxTodo" title="确定要删除吗？">删除</a> <a class="btnEdit"
									href="${ctx}${baseMapping}/input/${user.id}" width="800"
									height="550" target="dialog" title="查看详情">查看</a>
							</div>
						</td>
						<td>${user.loginName }</td>
						<td>${user.name }</td>
						<td>${user.roleNames}</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</div>
